package com.xidian.zhiancloud.controller.lz.warnforecast.keypointernotific;

import com.xidian.zhiancloud.dto.ResultDTO;
import com.xidian.zhiancloud.enums.GeneralResponseEnums;
import com.xidian.zhiancloud.model.WarnLevelSet;
import com.xidian.zhiancloud.service.warnforecast.basicsset.WarnLevelSetService;
import com.xidian.zhiancloud.service.warnforecast.keypointernotific.KeyStatisticalIndicatorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 关键指标统计
 */

@RestController
@RequestMapping("/keyStatistical")
public class KeyStatisticalIndicatorsController {
    @Autowired
    private KeyStatisticalIndicatorsService keyStatisticalIndicatorsService;

    @GetMapping("/getList")
    public ResultDTO getList() {
        return ResultDTO.successOf(keyStatisticalIndicatorsService.getList(), GeneralResponseEnums.SUCCESS);
    }


}
